package org.hxyjs.entity;

import java.io.Serializable;
import java.util.List;

/**
 * @author
 */
public class Chef implements Serializable {
    private String cno;

    private String cname;

    private String cstate;

    private String cphone;

    private String cid;

    private String cimg;

    private String cpwd;

    private String chea;

    private String ccal;

    private String successcase;

    private String dishes;

    public String getSuccesscase() {
        return successcase;
    }

    public void setSuccesscase(String successcase) {
        this.successcase = successcase;
    }

    public String getDishes() {
        return dishes;
    }

    public void setDishes(String dishes) {
        this.dishes = dishes;
    }

    public String getCpic() {
        return cpic;
    }

    public void setCpic(String cpic) {
        this.cpic = cpic;
    }

    private String cpic;

    private List<Cheforder> cheforders;

    public List<Cheforder> getCheforders() {
        return cheforders;
    }

    public void setCheforders(List<Cheforder> cheforders) {
        this.cheforders = cheforders;
    }

    private static final long serialVersionUID = 1L;

    public String getCno() {
        return cno;
    }

    public void setCno(String cno) {
        this.cno = cno;
    }

    public String getCname() {
        return cname;
    }

    public void setCname(String cname) {
        this.cname = cname;
    }

    public String getCstate() {
        return cstate;
    }

    public void setCstate(String cstate) {
        this.cstate = cstate;
    }

    public String getCphone() {
        return cphone;
    }

    public void setCphone(String cphone) {
        this.cphone = cphone;
    }

    public String getCid() {
        return cid;
    }

    public void setCid(String cid) {
        this.cid = cid;
    }

    public String getCimg() {
        return cimg;
    }

    public void setCimg(String cimg) {
        this.cimg = cimg;
    }

    public String getCpwd() {
        return cpwd;
    }

    public void setCpwd(String cpwd) {
        this.cpwd = cpwd;
    }

    public String getChea() {
        return chea;
    }

    public void setChea(String chea) {
        this.chea = chea;
    }

    public String getCcal() {
        return ccal;
    }

    public void setCcal(String ccal) {
        this.ccal = ccal;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Chef other = (Chef) that;
        return (this.getCno() == null ? other.getCno() == null : this.getCno().equals(other.getCno()))
                && (this.getCname() == null ? other.getCname() == null : this.getCname().equals(other.getCname()))
                && (this.getCstate() == null ? other.getCstate() == null : this.getCstate().equals(other.getCstate()))
                && (this.getCphone() == null ? other.getCphone() == null : this.getCphone().equals(other.getCphone()))
                && (this.getCid() == null ? other.getCid() == null : this.getCid().equals(other.getCid()))
                && (this.getCimg() == null ? other.getCimg() == null : this.getCimg().equals(other.getCimg()))
                && (this.getCpwd() == null ? other.getCpwd() == null : this.getCpwd().equals(other.getCpwd()))
                && (this.getChea() == null ? other.getChea() == null : this.getChea().equals(other.getChea()))
                && (this.getCcal() == null ? other.getCcal() == null : this.getCcal().equals(other.getCcal()))
                && (this.getSuccesscase() == null ? other.getSuccesscase() == null : this.getSuccesscase().equals(other.getSuccesscase()))
                && (this.getDishes() == null ? other.getDishes() == null : this.getDishes().equals(other.getDishes()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getCno() == null) ? 0 : getCno().hashCode());
        result = prime * result + ((getCname() == null) ? 0 : getCname().hashCode());
        result = prime * result + ((getCstate() == null) ? 0 : getCstate().hashCode());
        result = prime * result + ((getCphone() == null) ? 0 : getCphone().hashCode());
        result = prime * result + ((getCid() == null) ? 0 : getCid().hashCode());
        result = prime * result + ((getCimg() == null) ? 0 : getCimg().hashCode());
        result = prime * result + ((getCpwd() == null) ? 0 : getCpwd().hashCode());
        result = prime * result + ((getChea() == null) ? 0 : getChea().hashCode());
        result = prime * result + ((getCcal() == null) ? 0 : getCcal().hashCode());
        result = prime * result + ((getSuccesscase() == null) ? 0 : getChea().hashCode());
        result = prime * result + ((getDishes() == null) ? 0 : getCcal().hashCode());
        return result;
    }

    @Override
    public String toString() {
        return "Chef{" +
                "cno='" + cno + '\'' +
                ", cname='" + cname + '\'' +
                ", cstate='" + cstate + '\'' +
                ", cphone='" + cphone + '\'' +
                ", cid='" + cid + '\'' +
                ", cimg='" + cimg + '\'' +
                ", cpwd='" + cpwd + '\'' +
                ", chea='" + chea + '\'' +
                ", ccal='" + ccal + '\'' +
                ", successcase='" + successcase + '\'' +
                ", dishes='" + dishes + '\'' +
                ", cpic='" + cpic + '\'' +
                ", cheforders=" + cheforders +
                '}';
    }
}